package action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

import dao.SysconfigDao;

public class WebSetAction extends ActionSupport{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private SysconfigDao sysconfigDao;
	public List weblist;
    private String varname;
    private String value;
    
	public String execute(){
		weblist = sysconfigDao.findByProperty();
		if(weblist.size()>0){
			return "success";
		}else{
			return "input";
		}
		
	}
	public SysconfigDao getSysconfigDao() {
		return sysconfigDao;
	}
	public void setSysconfigDao(SysconfigDao sysconfigDao) {
		this.sysconfigDao = sysconfigDao;
	}
	public List getWeblist() {
		return weblist;
	}
	public void setWeblist(List weblist) {
		this.weblist = weblist;
	}	
	
}
